#!/usr/bin/env python
# -*- coding: latin-1 -*-
# -*- coding: cp1252 -*-

alphabet = "AÁBCDÐEÉFGHIÍJKLMNOÓPQRSTUÚVWXYZÞÆÖ"

file = open("texti.txt", "r")
ordin = [line.split(' ') for line in file.readlines()]
stafirnir = []
for x in range(len(alphabet)):
	stafirnir.append()
	for y in range(len(ordin)):
		for z in range(len(ordin[y])):
			if ordin[y][z] == alphabet[x]:
				stafirnir[x] += 1
strengir = []
for x in stafirnir:
	strengir.append("*\n"*x+x)
for x in strengir:
	print(x)

#þetta er vitlaust.
